package cn.com.sinosoft.controller;

import java.util.UUID;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;

import cn.com.sinosoft.model.UserEntity;
import cn.com.sinosoft.service.UserService;

@ContextConfiguration(locations = { "classpath:applicationContext.xml",
"classpath:META-INF/service-all.spring.xml" })
public class UserTestController extends AbstractJUnit4SpringContextTests{
	
	@Autowired
	UserService userService;
	
	@Test
	public void test_add(){
		UserEntity user=new UserEntity();
		user.setId(UUID.randomUUID().toString());
		user.setName("122");
		user.setAge(122);
		userService.addUser(user);
	}
}
